package creational.abstractfactory;

public class IntelCpu implements ICpu {
    private int type;

    public IntelCpu(int type) {
        this.type = type;
    }

    @Override
    public void run() {
        if (this.type == 1) {
            System.out.println("IntelCUP1 运行中");
        } else if (this.type == 2) {
            System.out.println("IntelCUP2 运行中");
        } else if (this.type == 3) {
            System.out.println("IntelCUP3 运行中");
        }
    }
}